home *** CD-ROM | disk | FTP | other *** search
- function tracexy()
- {
- mappagename = "mappage" + _root._currentframe;
- trace("角色座標:_x=" + _root.player._x + "_y=" + _root.player._y + "地圖座標:_x=" + _root[mappagename]._x + "_y=" + _root[mappagename]._y);
- }
- function LVUP()
- {
- if(_root.level <= 200)
- {
- _root.exps = _root.expmax;
- }
- else
- {
- _root.alertbox("Level MAXed!!");
- }
- }
- function HEAL()
- {
- _root.hp = _root.hpmax;
- _root.mp = _root.mpmax;
- }
- function MONEY()
- {
- _root.money = 9999999;
- }
- function getfps()
- {
- this.createEmptyMovieClip("fpsshow",100000);
- fpsshow._fps = 0;
- fpsshow.oldtim = getTimer();
- fpsshow.onEnterFrame = function()
- {
- fpsshow._fps = Math.round(1000 / (getTimer() - fpsshow.oldtim));
- fpsshow.oldtim = getTimer();
- fpsshown(fpsshow._fps);
- };
- }
- function fpsshown(rfps)
- {
- if(rfps <= 45)
- {
- fpstt = "運作狀況:良好";
- }
- else if(rfps <= 80)
- {
- fpstt = "運作狀況:略糟";
- }
- else if(rfps <= 100)
- {
- fpstt = "運作狀況:頗糟";
- }
- else
- {
- fpstt = "運作狀況:極差";
- }
- }
- var my_cm = new ContextMenu();
- my_cm.hideBuiltInItems();
- my_cm.customItems.push(new ContextMenuItem("角色升級",LVUP));
- my_cm.customItems.push(new ContextMenuItem("滿魔滿血",HEAL));
- my_cm.customItems.push(new ContextMenuItem("百萬金錢",MONEY));
- my_cm.customItems.push(new ContextMenuItem("角色座標",tracexy));
- my_cm.customItems.push(menuItem_cmi);
- _root.menu = my_cm;
- getfps();
-